<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Picture extends Model
{
    public $fillable = [
        'path','url','file_name','picturetable_id','picturetable_type','user_id','md5','size','width','height'
    ];

    protected $hidden = [
        'deleted_at',
    ];

    public function goods()
    {
        return $this->morphedByMany('App\Models\Goods', 'picturegable');
    }
}
